package com.qys.livesMall.shop.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.shop.modal.vo.ShopRechargeGradientVO;
import com.qys.livesMall.shop.service.ShopRechargeGradientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * app-店铺充值返现梯度
 *
 * @author
 * @since 2023-10-24
 */
@RestController
@RequestMapping("/app/shop/rechargeGradient")
public class AppShopRechargeGradientController {

    @Autowired
    private ShopRechargeGradientService shopRechargeGradientService;
    /**
     * 获取所有分割区间
     * @return
     */
    @GetMapping("/getAll")
    public R<List<ShopRechargeGradientVO>> getAll(){
        return R.ok(shopRechargeGradientService.getAll());
    }

}
